export function getPhoneNum() {
 
  // 获取渠道号
  let number = ''; // 默认渠道号
  // 获取当前运行环境
  const platform = uni.getSystemInfoSync().platform.toLowerCase();
  const uniPlatform = uni.getSystemInfoSync().uniPlatform;
  
  // 微信端
  switch(uniPlatform){
    case 'mp-weixin':
      // number = ' '; 小程序
      break;
    case 'web':
      let userAgent = navigator.userAgent.toLowerCase()
      if (userAgent.match(/MicroMessenger/i) == 'micromessenger') { // 微信
        number = '101'
      } else if (userAgent.match(/android_hnrcc/i) == 'android_hnrcc' || userAgent.match(/ios_hnrcc/i) == 'ios_hnrcc') { // 手机银行
        number = '102'
      } else {
        number = '110'
      }
      break;
  }
  
  return number;
}